﻿using Microsoft.AspNetCore.Authorization;
using System;

namespace EasyAdmin.Web.Authorizations
{
    public class AppRequirement : IAuthorizationRequirement
    {
        public AppRequirement(params string[] permissions) =>
            Permissions = permissions ?? Array.Empty<string>();

        public string[] Permissions { get; set; }
    }
}
